package com.luoc.base.config.mybatis.service.impl;

import com.luoc.base.config.mybatis.entity.SysUserRole;
import com.luoc.base.config.mybatis.mapper.SysUserRoleMapper;
import com.luoc.base.config.mybatis.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author luoc
 * @since 2019-07-25
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<SysUserRole> selectRoleIdsByUserId(String userName) {
        return sysUserRoleMapper.selectRoleIdsByUserId(userName);
    }
}
